import 'package:basic_library/basic_library.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'other/home_page.dart';

///
/// 仿抖音视频框架
///
// void main() {
//   /// 自定义报错页面
//   if (kReleaseMode) {
//     ErrorWidget.builder = (FlutterErrorDetails flutterErrorDetails) {
//       debugPrint(flutterErrorDetails.toString());
//       return const Material(
//         child: Center(
//             child: Text(
//           "发生了没有处理的错误\n请通知开发者",
//           textAlign: TextAlign.center,
//         )),
//       );
//     };
//   }
//   runApp(const MyApp());
// }

class VideoExample extends StatelessWidget {
  const VideoExample({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Tiktok',
      theme: ThemeData(
        brightness: Brightness.dark,
        hintColor: Colors.white,
        accentColor: Colors.white,
        primaryColor: ColorPlate.orange,
        primaryColorBrightness: Brightness.dark,
        scaffoldBackgroundColor: ColorPlate.back1,
        dialogBackgroundColor: ColorPlate.back2,
        accentColorBrightness: Brightness.light,
        textTheme: const TextTheme(
          bodyText1: StandardTextStyle.normal,
        ),
      ),
      home: const HomePage(),
    );
  }
}
